Returns True or False to indicate if an expression is a JSONObject type.
Syntax
IsJSONObject(Value)
Arguments
| Argument | Description |
|---|---|
| Value | Expression to evaluate. |
Return value
| Value | Description |
|---|---|
| True | Expression is a JSONObject. |
| False | Expression is not a JSONObject. |
Example
' Returns True
jsonArray = JSONNewObject()
boolVal = IsJSONObject(jsonObject)
PrintLn("Should be True: " & boolVal)
' Returns False
boolVal = IsJSONObject(JSONNewArray())
PrintLn("Should be False: " & boolVal)